package com.etlmaster.executor.scheduler.utils;

import java.util.concurrent.Future;



/**
 * @author Wugf
 * @date 2016-11-10
 */
public class CallableResult {
	private int result;
	private String message;
	private Future future;
	public CallableResult(int result, String message) {
		this.result = result;
		this.message = message;
	}
	public int getResult() {
		return result;
	}
	public String getMessage() {
		return message;
	}
	public boolean isError(){
		return result !=0;
	}
	public Future getFuture() {
		return future;
	}
	public void setFuture(Future future) {
		this.future = future;
	}
}
